package org.xuyuji.study.spring_hibernate_demo.dao.impl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class BaseDao extends HibernateDaoSupport{
	
	//HibernateDaoSupport中的sessionFactory无法注入，建一个方法注入。
	@Autowired
	public void setSessionFactory0(SessionFactory sessionFactory){
		this.setSessionFactory(sessionFactory);
	}
}
